package com.vcsoft.emailresponder.util;

import org.w3c.dom.CharacterData;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

public class Utility {
	
	public static String getCharacterDataFromElement(Element element) {
		Node child = element.getFirstChild();
		if (child instanceof CharacterData) {
			CharacterData characterData = (CharacterData) child;
			return characterData.getData();
		}
		return null;
	}

}
